<ion-view view-title="查看销量" class="myagentsale">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>
	
	
	<ion-content scroll="false" class="bg">
		<div class="saleInfoDiv">
			<div class="storeName">{{datasArr[0].store_name}}</div>
			<div class="saleInfo">
				<div class="left-zhang">
					<p>当月订单量：{{datasArr[0].curr_order_count}}</p>
					<p>上月订单量：{{datasArr[0].last_order_count}}</p>
				</div>
				<div class="right-zhang">
					<p>当月销量：{{datasArr[0].curr_order_money|currency:'￥'}}</p>
					<p>上月销量：{{datasArr[0].last_order_money|currency:'￥'}}</p>
				</div>
			</div>
		</div>
		
		<!--二级导航-->
		<div class="row top">
			<div class="col" on-tap="activeSlide(0)" ng-class="selectIndex==0?'top-activated':''">
				当月销量
			</div>
			<div class="col" on-tap="activeSlide(1)" ng-class="selectIndex==1?'top-activated':''">
				上月销量
			</div>
		</div>
		
		<ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false" on-touch="onTouch()" on-release="onRelease()">
			<!--当月销量-->
			<ion-slide>
				<ion-scroll direction="y" ng-style="myObj">
					<!--描述：下拉刷新-->
					<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
					
						<!--没有数据firstHide-->
						<div class="noData" ng-if="!datasArr[0].order">
							<img src="./img/guilin/other/noorder@2x.png" />
							<div class="tip">当月还没有销量喔！</div>
						</div>
					
						<div class="list">
							<li class="item mainItem" ng-repeat="order in datasArr[0].order">
								订单号：{{order.id}}
								<div class="time">{{order.createtime}}</div>
								<div class="money">{{order.total_amount|currency:'￥'}}</div>
							</li>
						</div>
					<ion-infinite-scroll ng-if="!isLoad&&datasArr[0].page.tPage>datasArr[0].page.cPage" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
				</ion-scroll>
			</ion-slide>


			<!--上月销量-->
			<ion-slide>
				<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
					<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
						
						<!--没有数据firstHide-->
						<div class="noData" ng-if="!datasArr[1].order">
							<img src="./img/guilin/other/noorder@2x.png" />
							<div class="tip">上月还没有销量喔！</div>
						</div>
					
						<div class="list">
							<li class="item mainItem" ng-repeat="order in datasArr[1].order">
								订单号：{{order.id}}
								<div class="time">{{order.createtime}}</div>
								<div class="money">{{order.total_amount|currency:'￥'}}</div>
							</li>
						</div>
					<ion-infinite-scroll ng-if="!isLoad&&datasArr[1].page.tPage>datasArr[1].page.cPage" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
				</ion-scroll>
			</ion-slide>

		</ion-slide-box>
	</ion-content>
</ion-view>